package cn.itcast.domain;

import java.io.Serializable;
import java.util.List;

//主表之中建集合   从表之中间对象
public class Kind implements Serializable{
    private Integer id;
    private String kind_name;


    private List<Book> books;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKind_name() {
        return kind_name;
    }

    public void setKind_name(String kind_name) {
        this.kind_name = kind_name;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    @Override
    public String toString() {
        return "Kind{" +
                "id=" + id +
                ", kind_name='" + kind_name + '\'' +
                ", books=" + books +
                '}';
    }
}
